ReloadProtocolHandler allows implementing custom resource reloading for a specific protocol. More...
Public Member Functions | |
void | handle (ResourceManager resourceManager, String url, String protocol, String hostname, String path, Resource resource) |
Takes a resource URL and reloads the provided resource object. | |
ReloadProtocolHandler allows implementing custom resource reloading for a specific protocol.
See com.rightware.kanzi.ResourceManager#registerProtocolHandler
.
void handle | ( | ResourceManager | resourceManager, |
String | url, | ||
String | protocol, | ||
String | hostname, | ||
String | path, | ||
Resource | resource ) |
Takes a resource URL and reloads the provided resource object.
resourceManager | The resource manager. |
url | The full URL of the resource in the form of "protocol://hostname/path". |
protocol | Extracted protocol part of the resource URL. |
hostname | Extracted hostname part of the resource URL. |
path | Extracted path part of the resource URL. |
resource | The resource that needs to be reloaded. |